% train100k - mirflick08 - refinement

MAP = [0.287, 0.302, 0.284, 0.160, 0.155, 0.166; ...
0.387, 0.485, 0.498, 0.258, 0.468, 0.293; ...
0.289, 0.115, 0.222, 0.321, 0.403, 0.151; ...
0.257, 0.302, 0.396, 0.549, 0.504, 0.219; ...
0.602, 0.583, 0.566, 0.282, 0.654, 0.401; ...
0.501, 0.454, 0.532, 0.535, 0.656, 0.346; ...
0.244, 0.309, 0.320, 0.390, 0.463, 0.196; ...
0.183, 0.238, 0.242, 0.242, 0.324, 0.158; ...
0.206, 0.185, 0.323, 0.453, 0.381, 0.138; ...
0.358, 0.484, 0.485, 0.503, 0.561, 0.562; ...
0.265, 0.340, 0.357, 0.426, 0.497, 0.564; ...
0.048, 0.065, 0.087, 0.075, 0.088, 0.088; ...
0.059, 0.139, 0.207, 0.137, 0.143, 0.068; ...
0.025, 0.176, 0.281, 0.394, 0.331, 0.109];

tags_name = {'baby', 'bird', 'car', 'cloud', 'dog', 'flower', 'girl', 'man', 'night', 'people', 'portrait', 'river', 'sea', 'tree'};
method_names = {'UserTags', 'TagCooccur', 'TagCooccur+', 'RobustPCA', 'RobustPCA-'}; %, 'TensorAnalysis'};

[~, idx] = sort(MAP(:,5), 'descend');

figure('units', 'normalized', 'position', [.1 .1 .6 .3]);
plot_tags(tags_name(idx), method_names, MAP(idx, 1), MAP(idx, 2), MAP(idx, 3), MAP(idx, 4), MAP(idx, 5)); %, MAP(idx, 6));
%xlim([0,0.6]);
saveTightFigure('mirflickr_train100k_MAP_refinement.pdf');